﻿
using System;

namespace PhoneInformation
{
    public class Phone
    {
        public string Brand { get; set; }
        public int Weight { get; set; }
        public long Camera { get; set; }
        public decimal Price { get; set; }
        
        public Phone(string brand, int weight, long camera, decimal price)
        {
            Brand = brand;
            Weight = weight;
            Camera = camera;
            Price = price;
        }
        public override string ToString()
        {
            return $"手机信息：\n" +
                   $"品牌：{Brand}\n" +
                   $"重量：{Weight}g\n" +
                   $"后置摄像头像素：{Camera}像素\n" +
                   $"价格：¥{Price}";
        }
    }
}